<%@ page language="java" contentType="text/html; charset=UTF-8"
    import="entity.Article"
    pageEncoding="UTF-8"%>
 <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>     
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>
   <form  method="post">
	<input type="hidden" name="id" value="${article.id }" %><br>
		content:<input type="text" name="content" value="${article.content }" %><br>
		Type:
	<select name="aType">
	  <c:forEach items="${types }" var="item">
	     <option value="${item.id }" <c:if test="${item.id==article.aType.id }">selected</c:if>    >${item.name }</option>
	  </c:forEach>
	</select>
<br>
		<input type="submit" value="提交">
	</form>
</body>
</html>